package com.ruoyi.classes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 t_comment
 * 
 * @author Bandit
 * @date 2022-11-01
 */
public class TComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论主键id */
    private Long id;

    /** 话题id */
    @Excel(name = "话题id")
    private Long topicId;

    /** 父评论id */
    @Excel(name = "父评论id")
    private Long parentId;

    /** 评论用户id */
    @Excel(name = "评论用户id")
    private Long userId;

    /** 回复用户id */
    @Excel(name = "回复用户id")
    private Long replyUserId;

    /** 评论用户名称 */
    @Excel(name = "评论用户名称")
    private String userName;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likes;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Long deleteFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setReplyUserId(Long replyUserId) 
    {
        this.replyUserId = replyUserId;
    }

    public Long getReplyUserId() 
    {
        return replyUserId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setLikes(Long likes) 
    {
        this.likes = likes;
    }

    public Long getLikes() 
    {
        return likes;
    }
    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topicId", getTopicId())
            .append("parentId", getParentId())
            .append("userId", getUserId())
            .append("replyUserId", getReplyUserId())
            .append("userName", getUserName())
            .append("content", getContent())
            .append("likes", getLikes())
            .append("createTime", getCreateTime())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
